<html>
<head><meta charset="utf-8"><title>dbg!() causing crashes and hangs · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html">dbg!() causing crashes and hangs</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="166569412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166569412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166569412">(May 26 2019 at 10:33)</a>:</h4>
<p>Today I'm getting reports from the rav1e team that using dbg!() causes hangs an/or worse.</p>
<p>As in adding !dbg(some.field) getting the code infiniloop or even segfault.</p>
<p>Is that a known issue or should I make them dig deeper? So far the workaround had been "use println!()"</p>



<a name="166571926"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166571926" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166571926">(May 26 2019 at 11:52)</a>:</h4>
<p>that sounds odd, does that macro even use unsafe code?</p>



<a name="166573132"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166573132" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166573132">(May 26 2019 at 12:31)</a>:</h4>
<p>do you have a small (or even minimal) example of a <code>dbg</code> crash?</p>



<a name="166573198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166573198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166573198">(May 26 2019 at 12:33)</a>:</h4>
<blockquote>
<p>that sounds odd, does that macro even use unsafe code?</p>
</blockquote>
<p>No, it's pretty basic <code>eprintln!(..)</code> all the way -- which makes this all more worrying</p>



<a name="166623458"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166623458" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166623458">(May 27 2019 at 09:52)</a>:</h4>
<p>it is in normal safe code, I couldn't get it to reproduce with a minimal rayon loop</p>



<a name="166629093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166629093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166629093">(May 27 2019 at 11:32)</a>:</h4>
<p>I should get a branch with the condition</p>



<a name="166629109"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166629109" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166629109">(May 27 2019 at 11:33)</a>:</h4>
<p>(if you have suggestions on how to improve that code in general that would be also welcome ^^)</p>



<a name="166631458"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166631458" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166631458">(May 27 2019 at 12:08)</a>:</h4>
<p><a href="https://github.com/shreevari/rav1e/blob/biasing_rdo/src/tiling/tile_state.rs#L138" target="_blank" title="https://github.com/shreevari/rav1e/blob/biasing_rdo/src/tiling/tile_state.rs#L138">https://github.com/shreevari/rav1e/blob/biasing_rdo/src/tiling/tile_state.rs#L138</a> here is an example</p>



<a name="166632524"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632524" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632524">(May 27 2019 at 12:24)</a>:</h4>
<p>It is getting even weirder</p>



<a name="166632547"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632547" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632547">(May 27 2019 at 12:24)</a>:</h4>
<p>I tried w/out the match around and it shows the same behaviour</p>



<a name="166632705"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632705" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632705">(May 27 2019 at 12:27)</a>:</h4>
<p>eprintln! isn't just a write! to stderr?</p>



<a name="166632922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632922">(May 27 2019 at 12:30)</a>:</h4>
<p>if you are getting a segfault that means you have undefined behavior. It may not be at all related to the <code>dbg!</code></p>



<a name="166632927"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632927" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632927">(May 27 2019 at 12:30)</a>:</h4>
<p>I'm not getting a segfault</p>



<a name="166632942"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632942" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632942">(May 27 2019 at 12:30)</a>:</h4>
<p>in the second comment in this thread you said " or even segfault."</p>



<a name="166632963"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632963" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632963">(May 27 2019 at 12:31)</a>:</h4>
<p>that's what people told me</p>



<a name="166632977"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632977" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632977">(May 27 2019 at 12:31)</a>:</h4>
<p>ok, what's actually happening?</p>



<a name="166632985"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632985" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632985">(May 27 2019 at 12:31)</a>:</h4>
<p>now I have something in my system so I can see what's going on :)</p>



<a name="166632987"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632987" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632987">(May 27 2019 at 12:31)</a>:</h4>
<p>what is the output?</p>



<a name="166632995"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166632995" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166632995">(May 27 2019 at 12:31)</a>:</h4>
<p>it apparently hangs</p>



<a name="166633007"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633007" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633007">(May 27 2019 at 12:31)</a>:</h4>
<p>and <code>println!</code> doesn't?</p>



<a name="166633013"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633013" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633013">(May 27 2019 at 12:31)</a>:</h4>
<p>yes</p>



<a name="166633082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633082">(May 27 2019 at 12:32)</a>:</h4>
<p>can you use a debugger and dump a backtrace of the hang?</p>



<a name="166633094"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633094" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633094">(May 27 2019 at 12:32)</a>:</h4>
<p>working on it right now :)</p>



<a name="166633138"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633138" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633138">(May 27 2019 at 12:33)</a>:</h4>
<p>do we have cargo debug somewhere? :P</p>



<a name="166633542"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633542" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633542">(May 27 2019 at 12:39)</a>:</h4>
<p><a href="https://gist.github.com/lu-zero/f12325142b1124b086f7c820ac844c71" target="_blank" title="https://gist.github.com/lu-zero/f12325142b1124b086f7c820ac844c71">https://gist.github.com/lu-zero/f12325142b1124b086f7c820ac844c71</a></p>



<a name="166633553"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633553" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633553">(May 27 2019 at 12:39)</a>:</h4>
<p>this is _really_ strange</p>



<a name="166633633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166633633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166633633">(May 27 2019 at 12:40)</a>:</h4>
<p>what's the best way to find who's locking that mutex?</p>



<a name="166634948"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166634948" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166634948">(May 27 2019 at 13:00)</a>:</h4>
<p>not sure... but you can keep moving <code>dbg!</code> calls earlier until you find it I guess</p>



<a name="166635022"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635022" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635022">(May 27 2019 at 13:01)</a>:</h4>
<p>so</p>



<a name="166635085"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635085" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635085">(May 27 2019 at 13:02)</a>:</h4>
<p>I'm trying to set a breakpoint at <a href="https://github.com/rust-lang/rust/issues/4" target="_blank" title="https://github.com/rust-lang/rust/issues/4">#4</a>  lock () at src/libstd/io/stdio.rs:666</p>



<a name="166635108"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635108" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635108">(May 27 2019 at 13:02)</a>:</h4>
<p>(also rust-gdb should add the rust sources to the directories :P)</p>



<a name="166635519"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635519" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635519">(May 27 2019 at 13:07)</a>:</h4>
<p>/me facepalms</p>



<a name="166635528"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635528" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635528">(May 27 2019 at 13:07)</a>:</h4>
<p>Ok</p>



<a name="166635584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635584">(May 27 2019 at 13:08)</a>:</h4>
<p>if found the problem</p>



<a name="166635598"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635598" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635598">(May 27 2019 at 13:08)</a>:</h4>
<p>and it is not related to dbg or rustc =E</p>



<a name="166635630"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635630" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635630">(May 27 2019 at 13:09)</a>:</h4>
<p>did you lock the error output manually?</p>



<a name="166635911"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635911" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635911">(May 27 2019 at 13:12)</a>:</h4>
<p>somebody had this great idea...</p>



<a name="166635921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166635921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166635921">(May 27 2019 at 13:12)</a>:</h4>
<p>and obviously I didn't think of checking that first</p>



<a name="166636142"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166636142" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166636142">(May 27 2019 at 13:15)</a>:</h4>
<p>where are the sources of rust-gdb ?</p>



<a name="166636620"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166636620" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166636620">(May 27 2019 at 13:21)</a>:</h4>
<p><span class="user-mention" data-user-id="131070">@Luca Barbato</span> might be <code>src/etc/rust-gdb</code> in the rustc repo</p>



<a name="166637238"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637238" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637238">(May 27 2019 at 13:29)</a>:</h4>
<p>it is a binary</p>



<a name="166637331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637331">(May 27 2019 at 13:30)</a>:</h4>
<p>are you sure that's not just the rustup wrapper?</p>



<a name="166637367"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637367" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637367">(May 27 2019 at 13:31)</a>:</h4>
<p>I am not :)</p>



<a name="166637383"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637383" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637383">(May 27 2019 at 13:31)</a>:</h4>
<p>I think it is</p>



<a name="166637393"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637393" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637393">(May 27 2019 at 13:31)</a>:</h4>
<div class="codehilite"><pre><span></span>-rwxr-xr-x 11 r r  11M Mai 23 15:54 rustc
-rwxr-xr-x 11 r r  11M Mai 23 15:54 rustdoc
-rwxr-xr-x 11 r r  11M Mai 23 15:54 rustfmt
-rwxr-xr-x 11 r r  11M Mai 23 15:54 rust-gdb
-rwxr-xr-x 11 r r  11M Mai 23 15:54 rust-lldb
-rwxr-xr-x 11 r r  11M Mai 23 15:54 rustup
</pre></div>


<p>notice the identical size</p>



<a name="166637394"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637394" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637394">(May 27 2019 at 13:31)</a>:</h4>
<p>good, then it is easy to change :)</p>



<a name="166637431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/dbg%21%28%29%20causing%20crashes%20and%20hangs/near/166637431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/dbg!().20causing.20crashes.20and.20hangs.html#166637431">(May 27 2019 at 13:32)</a>:</h4>
<p>these are all the same binary (hardlinks), and all they do is determine the current toolchain and the <code>exec</code> the real thing</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>